package com.slanmao.common.entity;

import com.slanmao.common.annotation.XStreamCDATA;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import lombok.Data;

import java.util.List;

/**
 * <CODE>NewsMessage</CODE>
 * 图文消息
 * @author fenrir
 * @Date 18-12-7
 */

@XStreamAlias("xml")
@Data
public class NewsMessage {


    @XStreamAlias("ToUserName")
    @XStreamCDATA
    private String ToUserName;

    @XStreamAlias("FromUserName")
    @XStreamCDATA
    private String FromUserName;

    @XStreamAlias("CreateTime")
    private Long CreateTime;

    @XStreamAlias("MsgType")
    @XStreamCDATA
    private String MsgType = "news";

    @XStreamAlias("ArticleCount")
    private int count = 1;

    @XStreamAlias("Articles")
    private List<NewsItem> articles;


}
